<?
	require("required/dbconnect.php");
			$get_info=mysql_query("select * from os_contactinfo where id=1");
			$i=mysql_fetch_array($get_info,MYSQL_ASSOC);
			$websitename_eng=$i['website_name'];
			$logo_url=$i['logo_url'];
			$os_url=$i['website'];
			
			$to="desstrax_yk@hotmail.com";
			
			$subject="testing email with images";
			$content='<IMG src="http://www.dlookingglass.com/images/logo.jpg">';
			
			
			
			$body="
			<html>
			<head>
			<style type='text/css'>
			BODY {
					BACKGROUND: #fff; MARGIN: 0px; FONT: 12px/140% 'sans-serif'; TEXT-ALIGN: center
				}
				.text{font:10px}
				.solidborder{font:12px;border:1px solid #000000}
			</style>
			</head>
			
			<body >
			<table width='600' bgcolor='#ffffff' align='center' style='border:1px solid #000000'>
			<tr valign='top'>
			<td align='left'>
			<font style='font-size:16px;color:#666666'><strong><a href='".$os_url."'>".$websitename_eng."</a></strong></font><br>
			</td>
			<td align='right'><img src='".$logo_url."'></td>
			</tr>
			<tr>
				<td colspan=2><hr></td>
			</tr>
			
			
			<tr valign='top'>
			<td colspan=2 align='left'>
			".$content."
			</td>
			</tr>
			</table>
			";
			
			
			$headers  = "MIME-Version: 1.0\r\n";
			$headers .= "Content-type: text/html; charset=gb2312\r\n";
			$headers .= "From: ".$websitename_eng ." Admin";		
			
			mail($to,$subject,$body,$headers);
			echo "done!";
?>